/*!
 @header DynamicViewController.h
 @author 王 文彬
 @version 1.0.0 2013/01/24 Creation
 Copyright (c) 2013年 mypocketbaby. All rights reserved.
 */

#import <UIKit/UIKit.h>
#import "FPPopoverController.h"
#import "JSONRequest.h"
#import "CircleInPopoverViewController.h"
#import "EGORefreshTableHeaderView.h"
#import "DynamicDetailViewController.h"
#import "ASImageView.h"

@class CircleListViewController;
@class MoonFormViewController;

/*!
 @abstract DynamicViewController展示圈子商讯首页，以列表形式显示动态。
 */
@interface DynamicViewController : UITableViewController<FPPopoverControllerDelegate, JSONRequestDelegate, CircleInPopoverViewControllerDelegate, DynamicOperateDelegate>
{
    CircleListViewController*       _circleListVC;                  //圈子列表VC实例
    NSMutableArray*                 _messageArray;                  //圈子动态的数据源
    FPPopoverController*            _popover;                       //圈子过滤VC实例
    UIButton*                       _navButton;                     //触发圈子过滤按钮
    NSInteger                       _currentCircleId;               //当前圈子的id
    UILabel*                        _titleLabel;                    
    UIImageView*                    _imageView;
    
    NSString*                       _announcementUrl;
    NSTimer*                        _timer;                         //Timer对象
    NSMutableArray*                 _announcementArray;
    NSInteger                       _times;
    ASImageView*                    _announcementView;
    NSString*                       _announcementTitle;
    UIButton*                       _deleteButton;
    
    NSTimer*                        _announcementTimer;
}

/*!
 @abstract 向服务器请求指定页数的圈子动态
 @discussion 用于用户点击toolbar时，根据badgevalue请求消息通知
 @param pageSize 消息数
 */
- (void)circleMessageRequestWithPageSize:(NSInteger)pageSize;

@property (atomic)NSInteger                       times;        //当前显示的公告信息在数据源中的索引
@end
